
package org.dlsu.mt.parser.generation;
import org.dlsu.mt.parser.FStructure;

public class Tester
{
	public static String file = "c:/english.txt";
	public static String strOutput;
	
	public Tester()
	{
		
	}
	
	public void Try(FStructure ef) throws Exception
	{
		
		GrammarLoader loader = new GrammarLoader(file);
		GrammarList list = loader.load();		
		
		HTPLConverter convert = new HTPLConverter(ef);
		convert.loadGrammarList(list);
		Phrase p = convert.convert();
		HTPLInterpreter interpret = new HTPLInterpreter();
		//System.out.println("\n\n"+interpret.interpret(p));
		strOutput = new String("" + interpret.interpret(p));
	}
}